/*
 * @(#)ListFormSubmissionAction.java
 *
 * Copyright (c) 2003 DCIVision Ltd
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of DCIVision
 * Ltd ("Confidential Information").  You shall not disclose such Confidential
 * Information and shall use it only in accordance with the terms of the license
 * agreement you entered into with DCIVision Ltd.
 */
package com.dcivision.form.web;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

import com.dcivision.framework.SystemFunctionConstant;
import com.dcivision.framework.web.AbstractListAction;

/**
 * <p>Class Name:       ListFormSubmissionAction.java    </p>
 * <p>Description:      The list action class for ListFormSubmission.jsp</p>
 * @author           Angus Shiu
 * @company          DCIVision Limited
 * @creation date    7/1/2004
 * @version          $Revision: 1.6 $
 */

public class ListFormSubmissionAction extends AbstractListAction {

  public static final String REVISION = "$Revision: 1.6 $";


  /** Creates a new instance of ListFormSubmissionAction */
  public ListFormSubmissionAction() {
    super();
    this.setListName("formSubmissionList");
    this.setListFunctionName("getListCanSubmit");
  }

  public String getFunctionCode() {
    return(SystemFunctionConstant.FORM_SUBMISSION);
  }

  public String getMajorDAOClassName() {
    return("com.dcivision.form.dao.FormRecordDAObject");
  }
  
  public ActionForward execute(ActionMapping mapping, ActionForm form,
			HttpServletRequest request, HttpServletResponse response)
			throws ServletException {
    return super.execute(mapping, form, request, response);
  }
}